package Code.InnerClass.Member;

public class Outer {
    int w = 10;


    //私有化内部类
     class Inner{
        static int a = 0;
        int w = 20;

        public void show(){
            int w = 30;

            System.out.println(Outer.this.w);//获取外部类对象
            System.out.println(this.w);//获取内部类对象
            System.out.println(w);//获取局部对象
        }
    }

    //用方法来创建内部内的对象

    public Inner getInstance(){
        return  new Inner();
    }
}
